<!DOCTYPE html>
<html>
  <head>
    <title>BenZo, Photographe Amateur - <%= yield :title %> </title>
    <%= stylesheet_link_tag 'style' %>
  </head>
  <body>
  <header class="main">
    <div class="title">
      <h1><%= link_to "BenZo", root_path , :style => "text-decoration: none;"%></h1>
      <h2>Photographe Amateur, Bordeaux</h2>
    </div>
    <div class="vignette-h">
      <div class="haut">&nbsp;</div>
      <div class="content">

        <ul>
          <% @recents_h.each do |image| %>
            <li><%= link_to "<img src='#{image_content_url(image, :width => 150, :height => 100 )}' alt='#{h image.name}' />" , image %></li>
          <% end %>
          <!--
          <li><img src="/images/_MG_8924.jpg_w150_h100.jpg" /></li>
          <li><img src="/images/_MG_8926.jpg_w150_h100.jpg" /></li>
          <li><img src="/images/_MG_8934.jpg_w150_h100.jpg" /></li>
          <li><img src="/images/_MG_9007.jpg_w150_h100.jpg" /></li>
          <li><img src="/images/_MG_8912.jpg_w150_h100.jpg" /></li>
          -->
        </ul>
      </div>
      <div class="bas">&nbsp;</div>
    </div>
    <nav>
      <div id="border">&nbsp;</div>
      <div id="logo">&nbsp;</div>
      <menu>
        <li><%= link_to "Le Blog", posts_path %></li>
        <li><%= link_to "La Galerie", images_path %></li>
        <li><%= link_to "Vos Avis", comments_path %></li>
      </menu>
      <menu>
        <li><%= link_to "Contact", contact_path %></li>
      </menu>
      <aside class="title"><h2><%= yield :title %></h2></aside>
    </nav>
  </header>
  <aside id="errors">
    <p class="notice"><%= flash[:notice] %></p>
    <p class="error"><%= flash[:error] %></p>
  </aside>
  <div style="clear: both;"></div>
  <div class="main">
    <div id="sidebar">
      <div class="vignette-v">
        <div class="gauche">&nbsp;</div>
        <div class="content">
          <ul>
            <!--
            <li>
              <h1>Recherche par tags</h1>
              <% unless @tags.empty? then %>
                <% @tags.each do |tag| %>
                  <span><%= link_to "#{h tag.name}", tag %></span>
                <% end %>
              <% end %>
            </li>
            -->
            <% @recents_v.each do |image| %>
              <li><%= link_to "<img src='#{image_content_url(image, :width => 150, :height => 100 )}' alt='#{h image.name}' />" , image %></li>
            <% end %>
            <!--
            <li><img src="/images/_MG_8912.jpg_w150_h100.jpg" /></li>
            <li><img src="/images/_MG_8924.jpg_w150_h100.jpg" /></li>
            <li><img src="/images/_MG_8926.jpg_w150_h100.jpg" /></li>
            <li><img src="/images/_MG_8934.jpg_w150_h100.jpg" /></li>
            <li><img src="/images/_MG_9007.jpg_w150_h100.jpg" /></li>
            <li><img src="/images/_MG_8924.jpg_w150_h100.jpg" /></li>
            -->
          </ul>
        </div>
        <div class="droite">&nbsp;</div>
      </div>
    </div>
    <div id="articles">
      <%= yield %>
    </div>
  </div>

  <footer class="main">
    <p>&copy; 2010 <strong>benzo.fr</strong></p>
  </footer>
</body>
</html>
